package fr.ants.controller.listener;

import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;

import javax.swing.JFrame;

public class ExitButtonListener implements MouseListener{

	/**
	 * Main frame.
	 */
	private JFrame frame;
	
	/**
	 * Build.
	 * @param frame main frame
	 */
	public ExitButtonListener(JFrame frame) {
		this.frame = frame;
	}
	
	@Override
	public void mouseClicked(MouseEvent e) {
		frame.setVisible(false);
		
	}

	@Override
	public void mousePressed(MouseEvent e) {
		// do nothing
		
	}

	@Override
	public void mouseReleased(MouseEvent e) {
		// do nothing
		
	}

	@Override
	public void mouseEntered(MouseEvent e) {
		// do nothing
		
	}

	@Override
	public void mouseExited(MouseEvent e) {
		// do nothing
		
	}

}
